#ifndef STRINGUTILITY_H
#define STRINGUTILITY_H

#include <string>
#include <sstream>

namespace Engine
{
	unsigned int Hash(const std::string& string);

	template <class T> 
	std::string ToString(T t)
	{
		std::string string;
		std::stringstream out;
		out << t;
		string = out.str();

		return string;
	}

	template <class T> 
	bool FromString(T& t, const std::string& string)
	{
		std::istringstream stream(string);

		if(stream >> t)
		{
			return true;
		}
		return false;
	}
}

#endif